package com.saxon.pojo;


import java.io.Serializable;
import java.util.Date;

public class Blog implements Serializable {
    private String author;
    private Date createTime;
    private String id;
    private String title;
    private Integer views;

    public Blog () {
    }

    public Blog (String author, Date createTime, String id, String title, Integer views) {
        this.author = author;
        this.createTime = createTime;
        this.id = id;
        this.title = title;
        this.views = views;
    }

    public String getAuthor () {
        return author;
    }

    public void setAuthor (String author) {
        this.author = author;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public String getId () {
        return id;
    }

    public void setId (String id) {
        this.id = id;
    }

    public String getTitle () {
        return title;
    }

    public void setTitle (String title) {
        this.title = title;
    }

    public Integer getViews () {
        return views;
    }

    public void setViews (Integer views) {
        this.views = views;
    }

    @Override
    public String toString () {
        return "Blog{" +
                "author='" + author + '\'' +
                ", createTime=" + createTime +
                ", id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", views=" + views +
                '}';
    }
}
